package com.kelp.codetoolkit.enums

/**
 * @author: liuyuebai
 * @date: 2025/1/1 21:33
 * @description:
 */
enum class RemoteInvocationFrameworkEnum(val value: String, val templateKey:String, val desc: String) {

    DUBBO("Dubbo", "Dubbo","Dubbo"),
    OPENFEIGN("OpenFeign", "Controller","OpenFeign"),
    ;

    companion object {
        fun getRemoteInvocation(value: String): RemoteInvocationFrameworkEnum? {
            RemoteInvocationFrameworkEnum.values().forEach {
                if (it.value == value) {
                    return it
                }
            }
            return null
        }
    }
}